Add TAL-Reverb-II plugin to test
[juce-lv2.git] / juce / source / extras / the jucer / src / model / paintelements / jucer_ColouredElement.h
blob595bf6992a08e2b016d8405fef565a5561582a28
1 /*
2 ==============================================================================
4 This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 Copyright 2004-11 by Raw Material Software Ltd.
7 ------------------------------------------------------------------------------
9 JUCE can be redistributed and/or modified under the terms of the GNU General
10 Public License (Version 2), as published by the Free Software Foundation.
11 A copy of the license is included in the JUCE distribution, or can be found
12 online at www.gnu.org/licenses.
14 JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 ------------------------------------------------------------------------------
20 To release a closed-source product which uses JUCE, commercial licenses are
21 available: visit www.rawmaterialsoftware.com/juce for more information.
23 ==============================================================================
26 #ifndef __JUCER_COLOUREDELEMENT_JUCEHEADER__
27 #define __JUCER_COLOUREDELEMENT_JUCEHEADER__
29 #include "../jucer_PaintRoutine.h"
30 #include "../jucer_JucerDocument.h"
31 #include "jucer_StrokeType.h"
34 //==============================================================================
35 /**
36 Base class for paint elements that have a fill colour and stroke.
39 class ColouredElement : public PaintElement
41 public:
42 //==============================================================================
43 ColouredElement (PaintRoutine* owner,
44 const String& name,
45 const bool showOutline_,
46 const bool showJointAndEnd_);
48 ~ColouredElement();
50 //==============================================================================
51 void getEditableProperties (Array <PropertyComponent*>& properties);
52 void getColourSpecificProperties (Array <PropertyComponent*>& properties);
54 //==============================================================================
55 const JucerFillType& getFillType() throw();
56 void setFillType (const JucerFillType& newType, const bool undoable);
58 bool isStrokeEnabled() const throw();
59 void enableStroke (bool enable, const bool undoable);
61 const StrokeType& getStrokeType() throw();
62 void setStrokeType (const PathStrokeType& newType, const bool undoable);
63 void setStrokeFill (const JucerFillType& newType, const bool undoable);
65 //==============================================================================
66 const Rectangle<int> getCurrentBounds (const Rectangle<int>& parentArea) const;
67 void setCurrentBounds (const Rectangle<int>& newBounds, const Rectangle<int>& parentArea, const bool undoable);
69 void createSiblingComponents();
71 //==============================================================================
72 void addColourAttributes (XmlElement* const e) const;
73 bool loadColourAttributes (const XmlElement& xml);
75 protected:
76 JucerFillType fillType;
78 bool isStrokePresent;
79 const bool showOutline, showJointAndEnd;
80 StrokeType strokeType;
82 void convertToNewPathElement (const Path& path);
86 #endif // __JUCER_COLOUREDELEMENT_JUCEHEADER__